<?php

include_once 'AdminController.php';

class service extends AdminController{ 
 	function __construct() {
 		parent::__construct();
 	}
	
	
	function getdata(){
		$data = array(
			'openid'	=>	'dsdsds',
			'date'		=> date('Y-m-d'),
		);
		$logModel = spClass('wx_api_log');
		$data = $logModel->findAll(array('status'=>0,'Event'=>'SCAN'), 'created desc', null, 100);
		$logModel->update(array('status'=>0,'Event'=>'SCAN'),array('status'=>1));
		$this->_Ajax_return(true,'',$data);
	}
	
	
	function api(){
		$this->_Ajax_return(true,'',array( 'POST'=>$_POST,'GET'=>$_GET,'REQUEST'=>$GLOBALS['HTTP_RAW_POST_DATA']));
	}
	
 }
?>